# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: kevin <kevin@archlinux.org>
# Contributor: Manolis Tzanidakis

pkgname=perl-digest-sha1
pkgver=2.13
pkgrel=19
pkgdesc="Perl interface to the SHA-1 Algorithm"
arch=(loong64 x86_64)
license=('PerlArtistic')
url="https://search.cpan.org/dist/Digest-SHA1/"
depends=('perl')
options=('!emptydirs')
source=("https://www.cpan.org/authors/id/G/GA/GAAS/Digest-SHA1-$pkgver.tar.gz")
sha256sums=('68c1dac2187421f0eb7abf71452a06f190181b8fc4b28ededf5b90296fb943cc')

build() {
  cd Digest-SHA1-$pkgver
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd Digest-SHA1-$pkgver
  make test
}

package() {
  cd Digest-SHA1-$pkgver
  make install DESTDIR="$pkgdir"
}
# vim: ts=2 sw=2 et ft=sh
